import React from 'react';
import './App.css';
import { Route, Redirect, BrowserRouter } from 'react-router-dom';
import LoginContainer from './components/login/login';
import HomeContainer from './components/home/home';
import registerContainer from './components/register/register';

function App() {
  return (
    <div className="App">
      <BrowserRouter>
        <Route exact path="/" render={() => <Redirect to="/home" />} ></Route>
        <Route path="/home" component={HomeContainer}></Route>
        <Route path="/register" component={registerContainer}></Route>
        <Route path="/login" component={LoginContainer}></Route>
      </BrowserRouter>
    </div>
  );
}

export default App;
